<g:setProvider library="jquery"/>

<div class="voice {}"><g:remoteLink class="label" controller="login" action="auth" update="[success:'content',failure:'error']">Login</g:remoteLink></div>
<div class="voice {}"><g:remoteLink class="label" controller="register" action="index" update="[success:'content',failure:'error']">Register</g:remoteLink></div>
<div class="voice {}"><a class="label" href="javascript:void(0)" onclick="adminLogin()">Admin Login</a></div>

<script type="text/javascript">
function login() {
    alert("Login")
}
var Account = {

    register : function() {
      alert("register");
/*
        $.ajax({
            url: "/XiLin/user/register",
            success: function(json){
                alert("ok");
            }
        });
*/
    }
}

function adminLogin() {
    alert("adminLogin")
}
</script>